<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Nfc Interactor: ndefnfcsprecord.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="nfcinteractor80.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Nfc Interactor
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">Shows all information about NFC tags available through Qt Mobility APIs. Includes reusable convenience classes for handling additional tag types: Smart Poster, Image and vCard.</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">ndefnfcsprecord.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">**</span>
<a name="l00003"></a>00003 <span class="comment">** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).</span>
<a name="l00004"></a>00004 <span class="comment">** All rights reserved.</span>
<a name="l00005"></a>00005 <span class="comment">** Contact: Andreas Jakl (andreas.jakl@nokia.com)</span>
<a name="l00006"></a>00006 <span class="comment">**</span>
<a name="l00007"></a>00007 <span class="comment">** This file is part of an NFC example for Qt Mobility.</span>
<a name="l00008"></a>00008 <span class="comment">**</span>
<a name="l00009"></a>00009 <span class="comment">** $QT_BEGIN_LICENSE:BSD$</span>
<a name="l00010"></a>00010 <span class="comment">** You may use this file under the terms of the BSD license as follows:</span>
<a name="l00011"></a>00011 <span class="comment">**</span>
<a name="l00012"></a>00012 <span class="comment">** &quot;Redistribution and use in source and binary forms, with or without</span>
<a name="l00013"></a>00013 <span class="comment">** modification, are permitted provided that the following conditions are</span>
<a name="l00014"></a>00014 <span class="comment">** met:</span>
<a name="l00015"></a>00015 <span class="comment">**   * Redistributions of source code must retain the above copyright</span>
<a name="l00016"></a>00016 <span class="comment">**     notice, this list of conditions and the following disclaimer.</span>
<a name="l00017"></a>00017 <span class="comment">**   * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00018"></a>00018 <span class="comment">**     notice, this list of conditions and the following disclaimer in</span>
<a name="l00019"></a>00019 <span class="comment">**     the documentation and/or other materials provided with the</span>
<a name="l00020"></a>00020 <span class="comment">**     distribution.</span>
<a name="l00021"></a>00021 <span class="comment">**   * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor</span>
<a name="l00022"></a>00022 <span class="comment">**     the names of its contributors may be used to endorse or promote</span>
<a name="l00023"></a>00023 <span class="comment">**     products derived from this software without specific prior written</span>
<a name="l00024"></a>00024 <span class="comment">**     permission.</span>
<a name="l00025"></a>00025 <span class="comment">**</span>
<a name="l00026"></a>00026 <span class="comment">** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span>
<a name="l00027"></a>00027 <span class="comment">** &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span>
<a name="l00028"></a>00028 <span class="comment">** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span>
<a name="l00029"></a>00029 <span class="comment">** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span>
<a name="l00030"></a>00030 <span class="comment">** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span>
<a name="l00031"></a>00031 <span class="comment">** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span>
<a name="l00032"></a>00032 <span class="comment">** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span>
<a name="l00033"></a>00033 <span class="comment">** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span>
<a name="l00034"></a>00034 <span class="comment">** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00035"></a>00035 <span class="comment">** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00036"></a>00036 <span class="comment">** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&quot;</span>
<a name="l00037"></a>00037 <span class="comment">** $QT_END_LICENSE$</span>
<a name="l00038"></a>00038 <span class="comment">**</span>
<a name="l00039"></a>00039 <span class="comment">****************************************************************************/</span>
<a name="l00040"></a>00040 <span class="preprocessor">#ifndef NDEFNFCSPRECORD_H</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define NDEFNFCSPRECORD_H</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;QString&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;QImage&gt;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;QUrl&gt;</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;QNdefMessage&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;QNdefRecord&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;QNdefNfcTextRecord&gt;</span>
<a name="l00050"></a>00050 <span class="preprocessor">#include &lt;QNdefNfcUriRecord&gt;</span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &quot;ndefnfcmimeimagerecord.h&quot;</span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;QDebug&gt;</span>
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;QTextCodec&gt;</span>
<a name="l00055"></a>00055 
<a name="l00056"></a>00056 QTM_USE_NAMESPACE
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="comment">// Header, Record name length (&#39;Sp&#39; = 2), Sp data length (0 for empty), &#39;Sp&#39; record name</span>
<a name="l00059"></a>00059 <span class="comment">//byte[] emptySpRecord = { 0xD1, 0x02, 0x00, &#39;S&#39;, &#39;p&#39; };</span>
<a name="l00060"></a>00060 <span class="comment">// &quot;urn:nfc:wkt:Sp&quot;</span>
<a name="l00061"></a>00061 
<a name="l00087"></a><a class="code" href="class_ndef_nfc_sp_record.html">00087</a> <span class="keyword">class </span><a class="code" href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ...">NdefNfcSpRecord</a> : <span class="keyword">public</span> QNdefRecord
<a name="l00088"></a>00088 {
<a name="l00089"></a>00089     <span class="keyword">public</span>:
<a name="l00090"></a>00090     <a class="code" href="class_ndef_nfc_sp_record.html#af03d0f6f7ac7bf7c09efbfa8d4d7a285" title="Create an empty Smart Poster (Sp) record.">NdefNfcSpRecord</a>();
<a name="l00091"></a>00091     <a class="code" href="class_ndef_nfc_sp_record.html#af03d0f6f7ac7bf7c09efbfa8d4d7a285" title="Create an empty Smart Poster (Sp) record.">NdefNfcSpRecord</a>(<span class="keyword">const</span> QNdefRecord &amp;other);
<a name="l00092"></a>00092     <span class="keyword">virtual</span> ~<a class="code" href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ...">NdefNfcSpRecord</a>();
<a name="l00093"></a>00093 
<a name="l00094"></a>00094 <span class="keyword">private</span>:
<a name="l00095"></a>00095     <span class="keywordtype">void</span> initializeData();
<a name="l00096"></a>00096     <span class="keywordtype">void</span> parseRecords();
<a name="l00097"></a>00097     <span class="keywordtype">bool</span> assemblePayload();
<a name="l00098"></a>00098     <span class="keywordtype">void</span> setPayloadAndParse(<span class="keyword">const</span> QByteArray &amp;payload, <span class="keyword">const</span> <span class="keywordtype">bool</span> parseNewPayload);
<a name="l00099"></a>00099 
<a name="l00100"></a>00100 <span class="keyword">public</span>:
<a name="l00101"></a>00101     <span class="keyword">enum</span> NfcAction {
<a name="l00102"></a>00102         DoAction = 0,
<a name="l00103"></a>00103         SaveForLater,
<a name="l00104"></a>00104         OpenForEditing,
<a name="l00105"></a>00105         RFU
<a name="l00106"></a>00106     };
<a name="l00107"></a>00107 
<a name="l00108"></a>00108     <span class="comment">//    byte[] actionRecord = { 0x11, 0x03, 0x01, &#39;a&#39;, &#39;c&#39;, &#39;t&#39;, action };</span>
<a name="l00124"></a><a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html">00124</a> <span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html" title="The Action record is a Local Type specific to the Smart Poster.">NdefNfcActRecord</a> : <span class="keyword">public</span> QNdefRecord
<a name="l00125"></a>00125     {
<a name="l00126"></a>00126     <span class="keyword">public</span>:
<a name="l00127"></a>00127         Q_DECLARE_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html" title="The Action record is a Local Type specific to the Smart Poster.">NdefNfcActRecord</a>, QNdefRecord::NfcRtd, <span class="stringliteral">&quot;act&quot;</span>, QByteArray(1, <span class="keywordtype">char</span>(0)));
<a name="l00128"></a>00128 
<a name="l00129"></a>00129         NdefNfcSpRecord::NfcAction <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html#a40e669f030535bb5fea5d57a4b8d0121" title="Retrieve the Smart Poster action from the record.">action</a>() <span class="keyword">const</span>;
<a name="l00130"></a>00130         <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html#a9f559341e3670fa04f3c9f097eb20bdc" title="Set the action of the Smart Poster to the specified value.">setAction</a>(<span class="keyword">const</span> NdefNfcSpRecord::NfcAction &amp;action);
<a name="l00131"></a>00131     };
<a name="l00132"></a>00132 
<a name="l00159"></a><a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html">00159</a>     <span class="keyword">class </span><a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html" title="The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object tha...">NdefNfcSizeRecord</a> : <span class="keyword">public</span> QNdefRecord
<a name="l00160"></a>00160     {
<a name="l00161"></a>00161     <span class="keyword">public</span>:
<a name="l00162"></a>00162         Q_DECLARE_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html" title="The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object tha...">NdefNfcSizeRecord</a>, QNdefRecord::NfcRtd, <span class="stringliteral">&quot;s&quot;</span>, QByteArray(4, <span class="keywordtype">char</span>(0)));
<a name="l00163"></a>00163 
<a name="l00164"></a>00164         quint32 <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html#ae29114425f9ba2ab7a720e76133e3eb9" title="Fetch the size of the content linked to by the Smart Poster.">size</a>() <span class="keyword">const</span>;
<a name="l00165"></a>00165         <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html#a0a67160168c3a8b3607801c208a23419" title="Set the size record of the Smart Poster.">setSize</a>(quint32 size);
<a name="l00166"></a>00166     };
<a name="l00167"></a>00167 
<a name="l00168"></a>00168     <span class="comment">//    The Payload of the Type Record is a UTF-8�formatted string that describes a MIME type [RFC 2046] which describes the type of the object that can be reached through the URI. (In practice this is limited to URLs only, much like the Size Record.)</span>
<a name="l00169"></a>00169     <span class="comment">//    The Local Type Name for the Type Record is &quot;t&quot;.</span>
<a name="l00170"></a>00170     <span class="comment">//    The length of the payload string is the same as the length of the payload, so there is no need for separate length information or termination.</span>
<a name="l00171"></a>00171     <span class="comment">//    The Type Record MAY be used by the device to determine whether it can process the referenced file or not. For example, an NFC tag could trigger a media file playback from an URL. If the Type Record references an unknown media type, the reader device (e.g. a cell phone) does not need to even initiate the playback.</span>
<a name="l00172"></a>00172     <span class="comment">//    The Type Record is optional to support.</span>
<a name="l00195"></a><a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html">00195</a> <span class="comment"></span>    <span class="keyword">class </span><a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html" title="The Payload of the Type Record is a UTF-8-formatted string that describes a MIME type [RFC 2046] whic...">NdefNfcTypeRecord</a> : <span class="keyword">public</span> QNdefRecord
<a name="l00196"></a>00196     {
<a name="l00197"></a>00197     <span class="keyword">public</span>:
<a name="l00198"></a>00198         Q_DECLARE_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html" title="The Payload of the Type Record is a UTF-8-formatted string that describes a MIME type [RFC 2046] whic...">NdefNfcTypeRecord</a>, QNdefRecord::NfcRtd, <span class="stringliteral">&quot;t&quot;</span>, QByteArray());
<a name="l00199"></a>00199 
<a name="l00200"></a>00200         QString <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html#af4e244f5204c2871628617e6ef2afd16" title="Fetch the mime type of the content linked to by the Smart Poster.">mimeType</a>() <span class="keyword">const</span>;
<a name="l00201"></a>00201         <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html#ad1bbad52721f80d5c8a98a24459812a8" title="Set the mime type of the content linked to by the Smart Poster.">setMimeType</a>(<span class="keyword">const</span> QString&amp; mimeType);
<a name="l00202"></a>00202     };
<a name="l00203"></a>00203 
<a name="l00204"></a>00204     <span class="comment">// Attention: this method is non-virtual in the base class!</span>
<a name="l00205"></a>00205     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#ad502a5c09cd50cfb6288617f53e472da" title="Sets the payload of the base class to the byte array from the parameter and parses its contents...">setPayload</a>(<span class="keyword">const</span> QByteArray &amp;payload);
<a name="l00206"></a>00206 
<a name="l00207"></a>00207     QString <a class="code" href="class_ndef_nfc_sp_record.html#a12464950d7a028bf6a906e2a12598673" title="Returns the contents of the text record as a string. To be used for debug purposes.">rawContents</a>() <span class="keyword">const</span>;
<a name="l00208"></a>00208 
<a name="l00209"></a>00209     <span class="comment">//    There is only one URI record per Smart Poster record. This is also the only mandatory record within a Smart Poster.</span>
<a name="l00210"></a>00210     <span class="comment">//    The device is not required to support any particular URI protocol, but if the device does not support the referenced protocol, it MUST discard the entire Smart Poster record.</span>
<a name="l00211"></a>00211     QUrl <a class="code" href="class_ndef_nfc_sp_record.html#ac38f55eae5cfe6f25a8ef06f663517c2" title="Return the URI stored in this Smart Poster, converted to a QUrl for convenience.">uri</a>() <span class="keyword">const</span>;
<a name="l00212"></a>00212     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#af2587902e2c7a802836ed4f54e8f87b9" title="Set the mandatory URI of the Smart Poster.">setUri</a>(<span class="keyword">const</span> QUrl &amp;<a class="code" href="class_ndef_nfc_sp_record.html#ac38f55eae5cfe6f25a8ef06f663517c2" title="Return the URI stored in this Smart Poster, converted to a QUrl for convenience.">uri</a>);
<a name="l00213"></a>00213     QNdefNfcUriRecord <a class="code" href="class_ndef_nfc_sp_record.html#af9487f5c8421ef960bf968d28014eee2" title="Return the URI record stored in this Smart Poster.">uriRecord</a>() <span class="keyword">const</span>;
<a name="l00214"></a>00214     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#af2587902e2c7a802836ed4f54e8f87b9" title="Set the mandatory URI of the Smart Poster.">setUri</a>(<span class="keyword">const</span> QNdefNfcUriRecord&amp; newUri);
<a name="l00215"></a>00215 
<a name="l00216"></a>00216     <span class="comment">//    The Title record is an instance of a Text RTD Record [TEXT]. There MAY be an arbitrary number of title records in the Smart Poster. However, there MUST NOT be two or more records with the same language identifier.</span>
<a name="l00217"></a>00217     <span class="comment">//    The Title record SHOULD be shown to the user.</span>
<a name="l00218"></a>00218     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#a3f37323f2725747944882bbe1b6fbe35" title="Add an (optional) title to the Smart Poster.">addTitle</a>(<span class="keyword">const</span> QNdefNfcTextRecord&amp; newTitle);
<a name="l00219"></a>00219     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#a0553ad691be3cd4fc8a504388df52ef8" title="Set all the titles of the Smart Poster.">setTitleList</a>(QList&lt;QNdefNfcTextRecord&gt; newTitleList);
<a name="l00220"></a>00220     <span class="keywordtype">int</span> <a class="code" href="class_ndef_nfc_sp_record.html#aadca8982f7f3a2af8618dac42fba3c10" title="Returns how many title text records are stored in the Smart Poster.">titleCount</a>() <span class="keyword">const</span>;
<a name="l00221"></a>00221     QList&lt;QNdefNfcTextRecord&gt; <a class="code" href="class_ndef_nfc_sp_record.html#a99a82a0abf2f11f902411a6cc73edaa6" title="Retrieve the full list containing all title text records that are stored in the Smart Poster...">titles</a>() <span class="keyword">const</span>;
<a name="l00222"></a>00222     QNdefNfcTextRecord <a class="code" href="class_ndef_nfc_sp_record.html#af785ae37b3c45b7666899096802525e6" title="Retrieve a specific title text record from the list.">title</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> index) <span class="keyword">const</span>;
<a name="l00223"></a>00223 
<a name="l00224"></a>00224     <span class="keywordtype">bool</span> <a class="code" href="class_ndef_nfc_sp_record.html#a3462ff2d61482cb0de93f9b4f30cfb06" title="Returns if the action has been defined for this Smart Poster instance.">actionInUse</a>() <span class="keyword">const</span>;
<a name="l00225"></a>00225     NfcAction <a class="code" href="class_ndef_nfc_sp_record.html#a73d50c70417bf62549e8078af47bdf38" title="Return the action defined for this Smart Poster.">action</a>() <span class="keyword">const</span>;
<a name="l00226"></a>00226     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#a2a240b64df374e41a518ac5b7b38f625" title="Set the action of the Smart Poster to the specified value.">setAction</a>(<span class="keyword">const</span> NfcAction &amp;<a class="code" href="class_ndef_nfc_sp_record.html#a73d50c70417bf62549e8078af47bdf38" title="Return the action defined for this Smart Poster.">action</a>);
<a name="l00227"></a>00227 
<a name="l00228"></a>00228     <span class="keywordtype">bool</span> <a class="code" href="class_ndef_nfc_sp_record.html#a65305e3fb21f42410d984b2e6055ffeb" title="Returns if the size has been defined for this Smart Poster instance.">sizeInUse</a>() <span class="keyword">const</span>;
<a name="l00229"></a>00229     quint32 <a class="code" href="class_ndef_nfc_sp_record.html#a9c1ea51b4446a461409ed874be293ad9" title="Return the size defined for this Smart Poster.">size</a>() <span class="keyword">const</span>;
<a name="l00230"></a>00230     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#a8b69f976a64c678b153f65196fa3d909" title="Set the size of the Smart Poster to the specified value.">setSize</a>(<span class="keyword">const</span> quint32 <a class="code" href="class_ndef_nfc_sp_record.html#a9c1ea51b4446a461409ed874be293ad9" title="Return the size defined for this Smart Poster.">size</a>);
<a name="l00231"></a>00231 
<a name="l00232"></a>00232     <span class="keywordtype">bool</span> <a class="code" href="class_ndef_nfc_sp_record.html#a5e9451247ea2a4fb5096299c2167e5e8" title="Returns if the type has been defined for this Smart Poster instance.">mimeTypeInUse</a>() <span class="keyword">const</span>;
<a name="l00233"></a>00233     QString <a class="code" href="class_ndef_nfc_sp_record.html#a4630690853edf75dfd49752c844d5c89" title="Return the type defined for this Smart Poster.">mimeType</a>() <span class="keyword">const</span>;
<a name="l00234"></a>00234     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#ada9950758e8b3147dbfdce3018580f4e" title="Set the type of the Smart Poster to the specified value.">setMimeType</a>(<span class="keyword">const</span> QString&amp; <a class="code" href="class_ndef_nfc_sp_record.html#a4630690853edf75dfd49752c844d5c89" title="Return the type defined for this Smart Poster.">mimeType</a>);
<a name="l00235"></a>00235 
<a name="l00236"></a>00236     <span class="keywordtype">bool</span> <a class="code" href="class_ndef_nfc_sp_record.html#ae3831762bc44f29d91af269a3a7e3086" title="Returns if the Smart Poster contains an image.">imageInUse</a>() <span class="keyword">const</span>;
<a name="l00237"></a>00237     <a class="code" href="class_ndef_nfc_mime_image_record.html" title="Handles all image-related MIME media-type constructs.">NdefNfcMimeImageRecord</a> <a class="code" href="class_ndef_nfc_sp_record.html#a0fe149f01879f5ebe0099536680d7747" title="Return the image stored in the Smart Poster.">image</a>() <span class="keyword">const</span>;
<a name="l00238"></a>00238     <span class="keywordtype">void</span> <a class="code" href="class_ndef_nfc_sp_record.html#a40961e308de55a66b96cfea7b12aa807" title="Add an image to the Smart Poster.">setImage</a>(<span class="keyword">const</span> <a class="code" href="class_ndef_nfc_mime_image_record.html" title="Handles all image-related MIME media-type constructs.">NdefNfcMimeImageRecord</a>&amp; imageRecord);
<a name="l00239"></a>00239 
<a name="l00240"></a>00240     <span class="keywordtype">bool</span> <a class="code" href="class_ndef_nfc_sp_record.html#abccf808747083503b1eb4865c065d7f3" title="Returns true if this record contains data that requires a Smart Poster and could not be stored in a s...">hasSpData</a>() <span class="keyword">const</span>;
<a name="l00241"></a>00241 
<a name="l00242"></a>00242 <span class="keyword">private</span>:
<a name="l00243"></a>00243     QNdefNfcUriRecord *m_recordUri;
<a name="l00244"></a>00244     QList&lt;QNdefNfcTextRecord&gt; m_recordTitleList;
<a name="l00245"></a>00245     <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_act_record.html" title="The Action record is a Local Type specific to the Smart Poster.">NdefNfcActRecord</a>* m_recordAction;
<a name="l00246"></a>00246     <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_size_record.html" title="The Size Record contains a four-byte, 32-bit, unsigned integer, which contains the size of object tha...">NdefNfcSizeRecord</a>* m_recordSize;
<a name="l00247"></a>00247     <a class="code" href="class_ndef_nfc_sp_record_1_1_ndef_nfc_type_record.html" title="The Payload of the Type Record is a UTF-8-formatted string that describes a MIME type [RFC 2046] whic...">NdefNfcTypeRecord</a>* m_recordMimeType;
<a name="l00248"></a>00248     <a class="code" href="class_ndef_nfc_mime_image_record.html" title="Handles all image-related MIME media-type constructs.">NdefNfcMimeImageRecord</a>* m_recordImage;
<a name="l00249"></a>00249 };
<a name="l00250"></a>00250 
<a name="l00251"></a>00251 Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ...">NdefNfcSpRecord</a>, QNdefRecord::NfcRtd, <span class="stringliteral">&quot;Sp&quot;</span>)
<a name="l00252"></a>00252 Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ...">NdefNfcSpRecord</a>::NdefNfcActRecord, QNdefRecord::NfcRtd, &quot;act&quot;)
<a name="l00253"></a>00253 Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ...">NdefNfcSpRecord</a>::NdefNfcSizeRecord, QNdefRecord::NfcRtd, &quot;s&quot;)
<a name="l00254"></a>00254 Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(<a class="code" href="class_ndef_nfc_sp_record.html" title="Handles the Smart Poster meta-record and is able to both parse and assemble a smart poster according ...">NdefNfcSpRecord</a>::NdefNfcTypeRecord, QNdefRecord::NfcRtd, &quot;t&quot;)
<a name="l00255"></a>00255 
<a name="l00256"></a>00256 
<a name="l00257"></a>00257 <span class="preprocessor">#endif // NDEFNFCSPRECORD_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Mar 12 2012 13:32:48 for Nfc Interactor by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
